﻿using ML.Entity;

namespace ML.IBusiness
{
    /// <summary>
    /// 资金账户业务接口
    /// </summary>
    public interface ICapitalAccountBusiness
    {
        /// <summary>
        /// 根据查询条件查询资金账户信息
        /// </summary>
        /// <param name="capitalAccountSearch">资金账户查询条件</param>
        /// <returns></returns>
        Pager<CapitalAccountResponse> List(CapitalAccountSearch capitalAccountSearch);

        /// <summary>
        /// 根据商户Id查询商户资金信息
        /// </summary>
        /// <param name="id">商户id</param>
        /// <returns></returns>
        BaseResult<CapitalAccountEntity> GetByMerchantId(string id);

        /// <summary>
        /// 根据商户Id查询汇总商户资金信息
        /// </summary>
        /// <param name="merchantId">商户Id</param>
        /// <returns></returns>
        CapitalAccountResponse GetCollectInfo(string merchantId);
    }
}